package springboot.test02;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.env.Environment;

import java.util.Objects;

@SuppressWarnings("unused")
public class CustomCommandLineRunner implements CommandLineRunner {

    Environment env;

    public CustomCommandLineRunner(Environment env){
        this.env=env;
    }
    @Override
    public void run(String...args){
        System.out.println("利用springboot自动装配的commandLineRunner启动成功");
    }
}
